package online.shenme.day12;

import java.io.FileWriter;
import java.io.IOException;

public class ThrowTest {
    public static void main(String[] args) {
        FileWriter fw=null;
        try {
            fw=new FileWriter("javaadvance/src/online/shenme/day12/test.txt");
            fw.write("HelloWorld");
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            if (fw != null) {
                try {
                    fw.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
